/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;

/**
 * <p>Project: mp2022 - Student
 * <p>Powered by webrx On 2022-04-16 11:42:55
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Data
@TableName("t_student")
public class Student {
    //IdType.AUTO 使用数据自增
    //如果不写type = IdType.NONE 雪花算法 Long id,表必须为 id bigint 是默认  IdType.ASSIGN_ID ,IdType.ASSIGN_UUID uuid 36 属性String id,表 id char(36)
    @TableId(value = "id")
    private String id;
    @TableField(value = "student_name")
    private String name;
    @TableField("addr")
    private String address;
    private LocalDate birthday;
    private Integer score;
}
